// eslint-disable-next-line no-shadow
export function search({ pg, search }) {
  return RSocket.rs({
    route: 'logs',
    args: {
      pg: { ...pg },
      search: {
        ...search,
      },
    },
  });
}

// eslint-disable-next-line no-shadow
export function count({ search }) {
  return RSocket.rr({
    route: 'logs.count',
    args: {
      search: {
        ...search,
      },
    },
  });
}
